﻿using Eleven.BreakAway.Model;
using System.Data.Entity.ModelConfiguration;

namespace Eleven.BreakAway.DataAccess
{
    class InternetSpecialConfiguration : EntityTypeConfiguration<InternetSpecial>
    {
        public InternetSpecialConfiguration()
        {
            HasRequired(s => s.Accommodation)
                .WithMany(a => a.InternetSpecials)
                .HasForeignKey(s => s.AccommodationId);
        }
    }
}
